$(document).ready(function() {
    query();
});

var query=function () {
    $.ajax({
        url: "http://localhost:8080/party/queryPartyMessage",
        type: "GET",
        async: true,
        data: "partyMemberAccount=" + 20151000,
        dataType: "json",
        success: function (data) {

            //console.log(data);
            console.log(data.data);

            // console.log(data.data.m1.data);
            console.log(data.data.m1.data.party);
            console.log(data.data.m2.data.countMember);
            console.log(data.data.m3.data.countActivity);

            var party=data.data.m1.data.party;
            var countMember=data.data.m2.data.countMember;
            var countActivity=data.data.m3.data.countActivity;
            $("#partyName").html(party.partyName);
            $("#partyDescription").html("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+party.partyDescription);
            $("#countMember").html(countMember);
            $("#countActivity").html(countActivity);
            $("#partyFoundTime").after("&nbsp;&nbsp;成立时间:"+party.partyFoundTime);
            $("#partyOrganizationNum").after("&nbsp;&nbsp;支部编号:"+party.partyOrganizationNum);
        },
        error:function () {
            layer.msg("网络在开小差~稍后重试");
        }
    });
}